package com.allenblog.service;

import com.allenblog.domain.ResponseResult;
import com.allenblog.domain.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;


/**
 * 用户表(User)表服务接口
 *
 * @author makejava
 * @since 2023-12-26 14:22:34
 */
public interface UserService extends IService<User> {

    /**
     * 显示个人信息
     * @return
     */
    ResponseResult userInfo();

    /**
     * 用户注册
     * @param user
     * @return
     */
    ResponseResult register(User user);

    /**
     * 更新个人信息
     * @param user
     * @return
     */
    ResponseResult updateUserInfo(User user);


    ResponseResult selectUserPage(User user, Integer pageNum, Integer pageSize);

    boolean checkUserNameUnique(String userName);
    boolean checkPhoneUnique(User user);
    boolean checkEmailUnique(User user);
    ResponseResult addUser(User user);

    void updateUser(User user);
}
